package com.yuanfengerp.login.controller;


import com.yuanfengerp.login.entity.User;
import com.yuanfengerp.login.service.IUserLoginService;
import com.yuanfengerp.publicUtil.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@CrossOrigin
public class UserController {
    @Autowired
    private IUserLoginService iuls;
    @PostMapping("/login")
    public Result<User> login(@Param("userName") String userName , @Param("userPassword") String userPassword) {
        return iuls.login(userName , userPassword);
    }
}

